const ReadStream = require('../input/mongodbReader.js');
(async function () {
    let reader = await ReadStream({
        uri: 'mongodb://localhost:27017',
        database: 'xs_qm',
        table: 'tb_role',
    });

    reader.on("data", data => {
        console.log("====", data);
    });

    reader.on("end", function() {
        console.log("done");
    });
})()
